
public class Example {
    static {
        System.out.println("Class Example is initialized.");
    }

    // 避免类加载
    public static final int CONSTANT = 42;
}